/* eslint-disable @typescript-eslint/no-explicit-any */
// src/api/product.ts
import http from "./request";
import { Product } from "../types/api";

export interface ProductListParams {
  [key: string]: any;
}

export const getProductList = (
  params?: ProductListParams
): Promise<Product[]> => {
  return http.request({
    url: "/product/getProductList",
    method: "get",
    params,
  });
};
